package com.kitty.game.gm.handler100;

import com.kitty.common.utils.SpringUtils;
import com.kitty.game.role.model.Role;
import com.kitty.game.role.service.RoleService;
import com.kitty.game.team.message.RespMsg;
import com.kitty.mina.message.MessagePusher;

public class NCDaohang implements NCGmFather {
    @Override
    public void handle(Role role, String petName) {
        int daohang = Integer.parseInt(petName);
        SpringUtils.getBean(RoleService.class).addTao(role, daohang);
        MessagePusher.pushMessage(role, new RespMsg("发送道行成功！"));
    }
}
